//
//  UIView+UIView_Grid.h
//  yilutongxing
//
//  Created by T&J on 2017/7/11.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import <UIKit/UIKit.h>

#define INNERLABEL_TAG 8888888
#define INNERGRID_TAG 666666
#define CELL_WIDTH_BIG 100
#define CELL_HEIGHT_BIG 44
#define CELL_WIDTH_SMALL 80
#define CELL_HEIGHT_SMALL 30

typedef NS_OPTIONS(NSInteger, GridBorder){
    GridBorderLeft = 1 << 0,
    GridBorderTop = 1 << 1,
    GridBorderRight = 1 << 2,
    GridBorderBottom = 1 << 3,
    GridBorderNone = 0
};

@interface UIView (Grid)
+ (UIView*)createGrid:(GridBorder)border backgroundColor:(UIColor*)bgcolor titleColor:(UIColor*)titlecolor titleSize:(NSInteger)titlesize origin:(CGPoint) originPoint size:(CGSize)size;
+ (void)refreshBorder:(GridBorder)border forGrid:(UIView*)grid;
@end
